//
//  LYTabar.m
//  KaoQin
//
//  Created by 刘宇 on 16/5/3.
//  Copyright © 2016年 liuyu. All rights reserved.
//

#import "LYTabar.h"

@implementation LYTabar
//
//- (id)initWithFrame:(CGRect)frame{
//    self = [super initWithFrame:frame];
//    if (self) {
//        self.frame = [];
//        CGFloat bewtten = (WIDTH/4.0)
//        for (int i = 0 ; i < 4 ; i++) {
//            UIButton    *button = [UIButton alloc]initWithFrame:CGRectMake(WIDTH, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>);
//        }
//    }
//    return self;
//}

- (void)buttonClick:(UIButton   *)button{
    if (@protocol(LYTabarDelegate) && [_LYDelegate respondsToSelector:@selector(LYTabbar:clickButton:)]) {
        [_LYDelegate LYTabbar:self clickButton:button.tag];
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/



@end
